| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- .channel-page {
- max-width: 1080px;
- margin: 0 auto;
- // ── 배너 ─────────────────────────────────────────
- &__banner {
- aspect-ratio: 6.2 / 1;
- background: linear-gradient(135deg, var(--bg-subtle), var(--border-default));
- border-radius: 12px;
- overflow: hidden;
- margin: 20px 20px 0 20px;
- }
- &__banner-img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- }
- // ── 프로필: 썸네일 + 채널명/메타/버튼 ─────────────
- &__profile {
- display: flex;
- align-items: flex-start;
- gap: 16px;
- padding: 16px 16px 12px;
- }
- &__avatar {
- width: 72px;
- height: 72px;
- border-radius: 50%;
- overflow: visible;
- background: var(--bg-subtle);
- flex-shrink: 0;
- position: relative;
- display: block;
- text-decoration: none;
- img {
- width: 100%;
- height: 100%;
- object-fit: cover;
- border-radius: 50%;
- }
- &--live {
- padding: 2px;
- background: linear-gradient(135deg, #f43f5e, #dc2626, #f97316);
- background-origin: border-box;
- img {
- border: 2px solid var(--bg-page, #fff);
- }
- }
- }
- &__live-badge {
- position: absolute;
- bottom: -4px;
- left: 50%;
- transform: translateX(-50%);
- background: #dc2626;
- color: #fff;
- font-size: 0.5625rem;
- font-weight: 700;
- letter-spacing: 0.5px;
- padding: 1px 6px;
- border-radius: 3px;
- line-height: 1.4;
- border: none;
- }
- &__avatar-placeholder {
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 1.75rem;
- font-weight: 700;
- color: var(--text-muted);
- border-radius: 50%;
- }
- &__info {
- flex: 1;
- min-width: 0;
- }
- &__name {
- font-size: 1.25rem;
- font-weight: 700;
- display: flex;
- align-items: center;
- gap: 6px;
- line-height: 1.3;
- a {
- color: inherit;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
- }
- }
- &__verified {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- background: #3b82f6;
- color: #fff;
- font-size: 0.5625rem;
- flex-shrink: 0;
- }
- &__meta {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 4px;
- font-size: 0.8125rem;
- color: var(--text-muted);
- margin-top: 2px;
- span + span::before {
- content: ' · ';
- }
- }
- // ── 버튼 ────────────────────────────────────
- &__buttons {
- display: flex;
- align-items: center;
- gap: 8px;
- // 데스크톱 전용 (info 내부)
- &--desktop {
- display: none;
- margin-top: 20px;
- }
- // 모바일 전용 (profile 아래 별도 줄)
- &--mobile {
- padding: 0 16px 4px;
- }
- }
- &__subscribe-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- padding: 8px 16px;
- border-radius: 20px;
- background: var(--fg-default, #0f0f0f);
- color: var(--bg-page, #fff);
- font-size: 0.875rem;
- font-weight: 500;
- text-decoration: none;
- white-space: nowrap;
- &:hover {
- opacity: 0.85;
- }
- }
- &__donate-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 4px;
- padding: 8px 16px;
- border-radius: 20px;
- background: #3b82f6;
- color: #fff;
- font-size: 0.875rem;
- font-weight: 500;
- text-decoration: none;
- white-space: nowrap;
- &:hover {
- background: #2563eb;
- }
- }
- // ── 라이브 ───────────────────────────────────────
- &__live {
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 10px 16px;
- margin: 0 16px;
- background: rgba(220, 38, 38, 0.05);
- border: 1px solid rgba(220, 38, 38, 0.15);
- border-radius: 8px;
- }
- &__live-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: #dc2626;
- flex-shrink: 0;
- animation: pulse-live 1.5s ease-in-out infinite;
- }
- &__live-title {
- flex: 1;
- font-size: 0.875rem;
- font-weight: 500;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- &__watch-btn {
- font-size: 0.8125rem;
- color: #3b82f6;
- font-weight: 500;
- flex-shrink: 0;
- white-space: nowrap;
- &:hover {
- text-decoration: underline;
- }
- }
- // ── 탭 네비게이션 ────────────────────────────────
- &__tabs {
- display: flex;
- border-bottom: 1px solid var(--border-default);
- margin-top: 4px;
- padding: 0 16px;
- }
- &__tab {
- padding: 12px 16px;
- font-size: 0.875rem;
- font-weight: 500;
- color: var(--text-muted);
- cursor: pointer;
- position: relative;
- &--active {
- color: var(--fg-default);
- &::after {
- content: '';
- position: absolute;
- bottom: -1px;
- left: 0;
- right: 0;
- height: 2px;
- background: var(--fg-default);
- border-radius: 2px 2px 0 0;
- }
- }
- &:hover:not(&--active) {
- color: var(--fg-default);
- }
- }
- // ── 탭 콘텐츠 ───────────────────────────────────
- &__tab-content {
- padding: 16px;
- }
- &__description {
- font-size: 0.875rem;
- color: var(--text-secondary);
- line-height: 1.6;
- white-space: pre-line;
- }
- &__empty {
- font-size: 0.875rem;
- color: var(--text-muted);
- }
- // ── 모바일: 버튼 풀너비, 별도 줄 ────────────────
- @media (max-width: 767px) {
- &__banner {
- margin: 10px;
- }
- &__buttons--mobile {
- display: flex;
- }
- &__subscribe-btn,
- &__donate-btn {
- flex: 1;
- }
- }
- // ── 데스크톱: 버튼 info 내부, 썸네일 크게 ────────
- @media (min-width: 768px) {
- &__buttons--desktop {
- display: flex;
- }
- &__buttons--mobile {
- display: none;
- }
- &__profile {
- align-items: center;
- gap: 20px;
- padding: 20px 24px 16px;
- }
- &__avatar {
- width: 128px;
- height: 128px;
- }
- &__name {
- font-size: 1.5rem;
- }
- &__meta {
- font-size: 0.875rem;
- }
- &__tabs {
- padding: 0 24px;
- }
- &__tab-content {
- padding: 20px 24px;
- }
- &__live {
- margin: 0 24px;
- }
- }
- }
- @keyframes pulse-live {
- 0%, 100% { opacity: 1; }
- 50% { opacity: 0.4; }
- }
|